package com.cheng.example.exception;

import java.io.File;
import java.io.IOException;
import java.util.Scanner;

public class FileNotFoundExceptionDemo {

    public static void main(String[] args) throws IOException, InterruptedException {
//        Scanner input = new Scanner(new File("D:\\BaiduNetdiskDownload\\测试.txt"));
        Scanner input = new Scanner(new File("D:\\BaiduNetdiskDownload\\测试.txt"));
        Thread.sleep(10000);
        String in = "";
        in = input.nextLine();
        System.out.println(in);

    }
}
